home *** CD-ROM | disk | FTP | other *** search
/ World of Education / World of Education.iso / world_d / drfinfo.zip / DRFPAPER.ASC < prev    next >
Text File  |  1993-04-28  |  84KB  |  1,848 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.         
  8.         
  9.         
  10.         
  11.         
  12.         
  13.         
  14.         
  15.         
  16.         
  17.         
  18.         
  19.         
  20.                          
  21.                          THE DISASTER RECOVERY DISKETTE
  22.         
  23.                              MAKING THE MAGIC FLOPPY
  24.         
  25.         
  26.         
  27.         
  28.         
  29.         
  30.         
  31.         
  32.         
  33.         
  34.         
  35.         
  36.                             Copyright (c) March 1993
  37.         
  38.                                All Rights Reserved
  39.         
  40.         
  41.                                        By
  42.         
  43.                                   Mike Lambert
  44.                              Before Disaster Strikes
  45.                       1153 Dublin Place, Herndon, VA 22070
  46.                      Voice 703-834-3707  Fax 703-471-6214
  47.                                         
  48.         
  49.  
  50.           
  51.         THE DISASTER RECOVERY DISKETTE  --  MAKING THE MAGIC FLOPPY
  52.  
  53.  
  54.         
  55.         
  56.         
  57.         
  58.         
  59.         
  60.         
  61.         
  62.         
  63.         
  64.         
  65.         
  66.                                      ABSTRACT
  67.         
  68.         
  69.         
  70.         
  71.                 
  72.         There are a number of things that can happen that will deny you 
  73.         the full access to your computer or data. These range from errant 
  74.         programming, to malicious code, and operator accidents. Under-
  75.         standing that this is an inevitable problem if you use a computer 
  76.         long enough, the prudent individual plans ahead. The first line 
  77.         of defense is the Disaster Recovery Diskette(s). This paper 
  78.         provides guidelines on minimums that should be on Disaster Recov-
  79.         ery Disks, what the programs and data are used for, an example 
  80.         constructing the disks, and examples of their use.
  81.          
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.            Copyright 1993  (c)   Mike Lambert   All Rights Reserved
  111.  
  112.           
  113.          THE DISASTER RECOVERY DISKETTE  --  MAKING THE MAGIC FLOPPY
  114.  
  115.  
  116.         
  117.         1. INTRODUCTION
  118.         
  119.         Have you ever heard of someone that couldn't boot their hard 
  120.         disk? Someone who had an MBR virus infection, or perhaps someone 
  121.         whose CMOS battery died? Well, if you use a computer long enough, 
  122.         something, sometime, will occur that will require some "outside 
  123.         intervention" on your part. This is where the Disaster Recovery 
  124.         Disk comes in, its the "magic floppy" that gets you up and using 
  125.         your computer again.
  126.         
  127.         If you have a virus, these disks are necessary to get rid of it. 
  128.         If you lose your CMOS settings, they can be restored. Software
  129.         to restore from backup copies is easily accessible when on the 
  130.         Disaster Recovery Disk. And for the more advanced, all the soft-
  131.         ware necessary to start from scratch is included on the Disaster 
  132.         Recovery Disks.
  133.         
  134.         This paper is an example of a "basic toolkit". Each computer 
  135.         installation and the way in which the computer is used, will 
  136.         dictate what is in the toolkit. From these basics the computer 
  137.         user is encouraged to expand it until it is of the best use for 
  138.         them.
  139.         
  140.         
  141.         1.1 Tone and Audience
  142.         
  143.         The audience for this discussion is the computer user that can 
  144.         use basic DOS commands, wants to learn more, and is interested in 
  145.         protecting their computing environment. Common terms such as FAT, 
  146.         are not defined. Terms that are introduced in this document or 
  147.         are outside of the scope of the normal computer user are defined.
  148.         
  149.         All of the information necessary for the novice user to use this 
  150.         paper to construct Disaster Recovery Disks is contained in their 
  151.         DOS User's Guide that comes with their computer. If you have not 
  152.         read the chapters that provide the basic computing background, 
  153.         file concepts, and common DOS commands; it is in your best inter-
  154.         est to do so.
  155.         
  156.         The tone is conversational rather than technical. A rigid struc-
  157.         ture is not enforced so that concept and implementation can be 
  158.         brought together in a more cohesive manner.
  159.         
  160.         The background provided is intentionally general and not meant to 
  161.         be technically accurate to the point of technical criticism. 
  162.         
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.         Copyright 1993 (c) Mike Lambert All Rights Reserved  Page 1 of 28
  173.  
  174.           
  175.         THE DISASTER RECOVERY DISKETTE  --  MAKING THE MAGIC FLOPPY
  176.  
  177.  
  178.         2. DEFINITIONS
  179.         
  180.         BIOS   Basic Input/Output System
  181.         --------------------------------
  182.         Commonly used to refer to the low level services including those 
  183.         that initialize and configure the computer at startup. These 
  184.         routines are normally stored in Read Only Memory (ROM) and are 
  185.         often referred to as ROM.
  186.         
  187.         
  188.         CMOS   Complementary Metal-Oxide Semiconductor
  189.         ----------------------------------------------
  190.         Commonly used to refer to that battery powered memory that is 
  191.         used to store a computer's configuration information for use by 
  192.         the BIOS at startup.
  193.         
  194.         
  195.         DISASTER RECOVERY FLOPPY DISK (DRF)
  196.         -----------------------------------
  197.         A floppy disk or set of disks prepared to provide the necessary 
  198.         tools and data to recover from the vast majority of hard disk 
  199.         problems a computer user is likely to encounter.
  200.         
  201.         
  202.         DISASTER RECOVERY PLAN (DRP)
  203.         ----------------------------
  204.         A plan by which all possible computer related losses can be 
  205.         recovered from in the timeframe established based on the accepted 
  206.         risk.
  207.         
  208.         
  209.         LOW LEVEL FORMAT (LLF)
  210.         ----------------------
  211.         The process of preparing a disk to hold data. All data on a disk 
  212.         is stored in sectors. Low Level Formatting constructs the sector 
  213.         that will hold the data. This is NOT what the DOS FORMAT command 
  214.         does on hard disks. Low Level Format software is normally in the 
  215.         disk controller ROM, in the BIOS ROM, provided by the 
  216.         manufacturer, or procured from a third party specializing in 
  217.         software of this type. This process is normally only required 
  218.         when sectors can no longer be read by the drive for some reason.
  219.         
  220.         
  221.         NONBOOTABLE vs UNBOOTABLE
  222.         -------------------------
  223.         A NONbootable disk is a disk that has not been made bootable by 
  224.         installing system files on it (SYS or FORMAT /S). An UNbootable 
  225.         disk is a disk that was once made bootable and is no longer so.
  226.         
  227.         
  228.         3. THE PROBLEMS YOU CAN ENCOUNTER
  229.         
  230.         The problems you can encounter revolve around the modification or 
  231.         loss of the important system data and structures that are neces-
  232.  
  233.  
  234.         Copyright 1993 (c) Mike Lambert All Rights Reserved  Page 2 of 28
  235.  
  236.           
  237.         THE DISASTER RECOVERY DISKETTE  --  MAKING THE MAGIC FLOPPY
  238.  
  239.  
  240.         sary to "bring up" your computer system when you turn it on. Some 
  241.         of these important data are outside of the normal concepts of 
  242.         "backing up your data". Many might backup some or all of this 
  243.         important data unknowingly, such as with MIRROR, but in many 
  244.         cases it is backed up on the hard disk that you can't boot! In 
  245.         some cases the data is backed up but cannot be restored.
  246.         
  247.         
  248.         3.1 CMOS Data
  249.         
  250.         One of the things that has to be done when constructing a comput-
  251.         er system is to define the configuration. This is taken care of 
  252.         by the system integrator that assembled your system. Configura-
  253.         tion items are hard disk type, memory size, video type, floppy 
  254.         drive configuration, and with the newer 386 and 486 computers, a 
  255.         myriad of additional setting ranging from wait states to shadow 
  256.         memory options. In the days of the PC and XT, this configuration 
  257.         was very simple and was accomplished by setting switches on one 
  258.         or two switch blocks located on the motherboard. With the 286 and 
  259.         above computers, the configuration settings are stored in "CMOS 
  260.         memory". In simple terms, this is special memory that holds the 
  261.         settings and is powered all the time by a small battery normally 
  262.         mounted on the motherboard.
  263.         
  264.         How important is this configuration information? Well, without it 
  265.         you certainly won't be able to use the computer. While your 
  266.         system can operate with only the default settings in some cases, 
  267.         if your hard disk definition is not present, you won't be able to 
  268.         use the hard drive. If you "lose" some of the advanced options,
  269.         you may only notice that your system is not performing as well.
  270.         
  271.         Your hard disk definition is certainly the most important of the 
  272.         settings saved in CMOS. If it is "lost", you will have to provide 
  273.         it before you will be able to use the hard disk. A while back 
  274.         things were a little simpler in that you only had to write down 
  275.         or remember the disk type. When this is provided, the BIOS looks 
  276.         up the type in a table and provides the necessary configuration 
  277.         data. But, who knows what their disk type is? Only those who have 
  278.         looked. Now that many systems are using the new IDE disks, we 
  279.         find that the none of the normal disk types fit and you will have 
  280.         to enter each of the configuration parameters. Lots of numbers 
  281.         there to remember! At a minimum, I suggest you look at your disk 
  282.         parameters and write them inside the cover of your disk drive or 
  283.         motherboard manual. The information is on the "Standard CMOS 
  284.         Setup" page of the BIOS configuration utility. You get to the 
  285.         CMOS Setup by running your SETUP program or pressing the proper 
  286.         key(s) during system startup when the BIOS prompts you. Here is 
  287.         the information on my IDE hard disk:
  288.         
  289.                      Type            Cyln  Head  WPcom  LZone  Sect  Size
  290.                      --------------  ----  ----  -----  -----  ---- -----
  291.         Hard disk C: 47 = User Type   960   7      0     960    35  115Mb
  292.         Hard disk D: none
  293.         
  294.  
  295.  
  296.         Copyright 1993 (c) Mike Lambert All Rights Reserved  Page 3 of 28
  297.  
  298.           
  299.         THE DISASTER RECOVERY DISKETTE  --  MAKING THE MAGIC FLOPPY
  300.  
  301.  
  302.         Type 47 is a "blank type", you will have to provide the other 
  303.         parameters (except Size). There is an easy way to "remember" all 
  304.         this CMOS information that will not require you to be an authori-
  305.         ty on configuration, or even know how to make the settings "by 
  306.         hand" using the BIOS Setup program. The answer is to use a pro-
  307.         gram to read the CMOS settings and save them to a file. A compan-
  308.         ion program can be used to put the settings back in CMOS. All of 
  309.         this can even happen automatically!
  310.         
  311.         How can these settings be lost? You or another can "tinker" with 
  312.         the BIOS program that sets the settings, a program could modify 
  313.         "this setting" instead of "that setting" because of a bug in the 
  314.         program, a virus could modify them, or the battery could just 
  315.         plain die! In some cases, it may be necessary to reset the CMOS 
  316.         settings to the default settings; but the default settings do not 
  317.         include your disk parameters. You will have to provide them.
  318.         
  319.         
  320.         3.2 Master Boot Record
  321.         
  322.         The single most important sector on your hard disk is the Master 
  323.         Boot Record. It occupies the first sector on the hard disk and 
  324.         without it, at best, you could not use the hard disk, at worst, 
  325.         if corrupted, you would not be able to boot the computer in any 
  326.         manner until the hard disk is removed.
  327.         
  328.         This sector is constructed when the hard disk is partitioned by 
  329.         the system integrator that assembled your computer system. It is 
  330.         normally totally forgotten from that time forward.
  331.         
  332.         The MBR is not protected in any way and can be easily modified or 
  333.         destroyed. It is normally not backed up, and if it is backed up, 
  334.         its on the hard disk that would require it, or when its really 
  335.         needed, it can't be restored! The MBR is a favorite target of 
  336.         viruses. Some virus names you'll be familiar with are Michelange-
  337.         lo, Stoned, and Joshi. All of these viruses modify the MBR and 
  338.         the way to "disinfect" your computer is to replace the virus with 
  339.         the real MBR. If you have a backup copy, you merely restore it; 
  340.         no more wondering if the "disinfection" program really works...
  341.         
  342.         
  343.         3.3 Extended Partition Boot Records (EPBR)
  344.         
  345.         If you have an Extended Partition on your hard disk, the Extended 
  346.         Partition Boot Record is the sector that is necessary for DOS to 
  347.         find the logical drives in the Extended Partition. Without 
  348.         it/them, no logical drives.
  349.         
  350.         The EPBR(s) is(are) not protected in any way and normally not 
  351.         backed up. If it is lost or corrupted all logical drives it 
  352.         controls are lost. For instance, if you have C: and two logical 
  353.         drives in the Extended Partition (D: and E:), if the EPBR for E: 
  354.         is lost, you lose logical drive E:. If the EPBR for D: is lost,
  355.         you lose both D: and E:.
  356.  
  357.  
  358.         Copyright 1993 (c) Mike Lambert All Rights Reserved  Page 4 of 28
  359.  
  360.           
  361.         THE DISASTER RECOVERY DISKETTE  --  MAKING THE MAGIC FLOPPY
  362.  
  363.  
  364.         3.4 Your Data and Programs
  365.         
  366.         For some reason, any reason, you could lose all or part of your
  367.         data and programs. In fact, the entire file structure of a parti-
  368.         tion could be lost. In this case, your hard disk could be no 
  369.         longer bootable. You will need all of the basic tools to estab-
  370.         lish another file system and recover your data from your backups. 
  371.         (Accidentally deleting a file and recovering it with UNDELETE is 
  372.         not what is addressed here.)
  373.         
  374.         Some people attempt to solve this by backing up the FAT and 
  375.         directory structures. This sort of backup would have to be writ-
  376.         ten to a different volume or floppy disk. The serviceable life 
  377.         span of such a backup is extremely short for a system with any 
  378.         kind of disk activity. The expertise to recover using the backups 
  379.         without causing more damage is considerable and the job is more 
  380.         time consuming the older the backup is. I do not recommend this 
  381.         method, rather current backups and a reasonable Disaster Recovery 
  382.         Plan.
  383.         
  384.         Disaster Recovery Planning is not covered in this document. It is 
  385.         relatively complex and based on the user requirements. To get an 
  386.         idea, consider you use your computer at home for a part time 
  387.         business. You and your mate return home after an evening out and 
  388.         find that the room your computer is in has been destroyed by 
  389.         water from the upstairs apartment, a fire, or some other problem. 
  390.         Or, what about your hard disk not working the next time you turn 
  391.         the computer on. The information on the computer is very impor-
  392.         tant and is no longer available. What do you do now? How long can 
  393.         you afford to not have access to your important information? Do 
  394.         you even have a backup copy? Can you put the backed up data and 
  395.         programs back on the computer? Just imagine....now construct a 
  396.         plan so that whether you live in San Francisco, or Homestead, 
  397.         Fla, or work in the World Trade Center, or Smalltown, USA on the 
  398.         Tornado paths; you'll be able to get your computer back up and 
  399.         running with the data you need without having to redo the last 
  400.         six months of work. 
  401.         
  402.         The Disaster Recovery Disk(s) provide the tools, you must decide 
  403.         how the backup copies are provided and how you will go about 
  404.         getting "back to normal".
  405.         
  406.         
  407.         3.5 Your Hard Disk and Low Level Format (LLF)
  408.         
  409.         This is not something that needs to be done very often, but if 
  410.         you need to, this kind of recovery will exercise almost all of 
  411.         your Disaster Recovery Disks. I have heard that this is touted to 
  412.         be the "cure" for the MBR virus. Really!?! We will see that the 
  413.         cure for the MBR virus is in section 5.1.2 below. It will take us 
  414.         a couple of minutes to recover! But here is what we're told:
  415.         
  416.         Some will tell you that how to recover from an MBR virus is to 
  417.         Low Level Format, create new partitions with FDISK, FORMAT the 
  418.  
  419.  
  420.         Copyright 1993 (c) Mike Lambert All Rights Reserved  Page 5 of 28
  421.  
  422.           
  423.         THE DISASTER RECOVERY DISKETTE  --  MAKING THE MAGIC FLOPPY
  424.  
  425.  
  426.         new partitions, then recover from backup copies. Even if we have 
  427.         everything at hand and current, this could take hours! Seems to 
  428.         me that the cure is worse than the disease! This approach is akin 
  429.         to demolishing your house and rebuilding it because your faucet 
  430.         leaks. Let's stick with our MBR restore procedure in section 
  431.         5.1.2 below instead.
  432.         
  433.         Of all the threats to your hard disk's LLF, the biggest one is 
  434.         "The User following Bad Advice". There is a lot of Bad Advice out 
  435.         there, know exactly why you are ever doing anything before you do 
  436.         it. The paragraph above illustrates the most common type of Bad 
  437.         Advice you are likely to get. If you need advice, get good advice 
  438.         from an expert, not hearsay from the grapevine.
  439.         
  440.         What is the Real Reason to Low Level Format your disk? Simply 
  441.         speaking, if the low level format of the hard disk has faded or 
  442.         the heads do not line up over the track to be read, you may 
  443.         experience read errors. These are the most common reasons for 
  444.         reformatting a hard disk. Of course other things like a head 
  445.         crash (when the head comes in contact with the disk, partially 
  446.         destroying the head of the disk platter) can happen, but refor-
  447.         matting is seldom the answer to problems like this.
  448.         
  449.         The sector format on a disk is made up of bits just as the data 
  450.         is. The data is written or rewritten much more frequently than 
  451.         the one time that the sector format is written. The actual bad 
  452.         blocks on the media are already logged by the manufacturer and 
  453.         you should not be using them anyway.
  454.         
  455.         How often does it happen? Frankly, not too often. But if you are 
  456.         having read errors on your hard disk, you are headed for serious 
  457.         trouble. Again, chances are, if you use a computer long enough 
  458.         then you will have to address the issue yourself or pay someone 
  459.         to do it for you.
  460.         
  461.         IDE hard drives that provide defect management *may* require the 
  462.         ability to reinitialize that area. The manufacturer would provide 
  463.         this software if it is available. See Appendix B for information 
  464.         on defect management.
  465.         
  466.         One other reason to have to LLF your hard disk is if some mali-
  467.         cious code has damaged your LLF. This is unlikely but who knows 
  468.         what the future will bring? I still haven't, and don't know 
  469.         anyone who has, gotten a straight answer on what would happen to 
  470.         an IDE disk if a virus actually attempts to LLF your IDE drive.
  471.         
  472.         PLEASE NOTE: No matter what kind of hard disk you have (but 
  473.         especially IDE drives), you should consult your drive manufactur-
  474.         er, get the information and/or utilities you need, and the FOLLOW 
  475.         the manufacturer's instructions. See Appendix A for an example of 
  476.         getting this information from the manufacturer.
  477.         
  478.         
  479.         
  480.  
  481.  
  482.         Copyright 1993 (c) Mike Lambert All Rights Reserved  Page 6 of 28
  483.  
  484.           
  485.         THE DISASTER RECOVERY DISKETTE  --  MAKING THE MAGIC FLOPPY
  486.  
  487.  
  488.         4. DISASTER RECOVERY FLOPPY CONSTRUCTION
  489.         
  490.         The very first thing you need is something to boot the computer 
  491.         with if it won't boot (normal hard drive boot). Its called a 
  492.         Disaster Recovery Disk because its exactly what you need if you 
  493.         have a disaster! You can't easily make it after a disaster, so 
  494.         we'll plan it and construct it here. I suggest low density disks, 
  495.         360k for the 5 1/4 and 720k for the 3 1/2 inch disks when possi-
  496.         ble. Of course, you can use high density disks. The number of 
  497.         disks you will require will vary with your disk type, how many 
  498.         tools you have, etc. The disks below are for illustration pur-
  499.         poses.
  500.         
  501.         This example will require four 360k floppy disks for a 286 with a 
  502.         single 360k floppy disk drive and two 84Mb SCSI hard disks. The 
  503.         backup method is tape, critical new work is backed up to floppy 
  504.         as required during the interval between tape backups. The disk 
  505.         maintenance software was acquired with the hard disk.
  506.         
  507.         
  508.         4.1 DRF DISK 1
  509.         
  510.         The first disk to be made is a clean copy of DOS with the basic 
  511.         DOS tools on it. Once this disk is made, it will be write pro-
  512.         tected and the write protect will NEVER be removed. 
  513.         
  514.         This disk can be easily created if you have an original copy of a 
  515.         full DOS distribution made when the DOS was first installed. I 
  516.         always make a set just after the new operating system is in-
  517.         stalled and I am still booted from the distribution floppy. To do 
  518.         this, I boot the installation disk, install DOS, and after the 
  519.         installation on the hard disk, I FORMAT, SYS, and COPY all of the 
  520.         files to a set of floppies before I boot the new system on the 
  521.         hard disk (run any of the programs on the hard disk). This way I 
  522.         can always boot one of these original copy floppies and DISKCOPY 
  523.         whatever I need in the way of new, clean DOS disks.
  524.         
  525.         If you don't have a clean DOS disk to DISKCOPY, try this. Be 
  526.         careful not to run any program from the hard disk during this 
  527.         procedure except those you extract from the DOS distribution 
  528.         disk. 
  529.         
  530.         1. Boot your original DOS disk, EXPAND or COPY the necessary 
  531.         files (see disk directory below) to a new directory on the hard 
  532.         disk.
  533.         
  534.         2. Execute DISKCOPY and copy the original bootable DOS disk to a 
  535.         new floppy.
  536.         
  537.         3. Delete unnecessary files from the new floppy and copy those 
  538.         that you extracted and copied to the hard disk onto the new 
  539.         bootable floppy. 
  540.         
  541.         
  542.  
  543.  
  544.         Copyright 1993 (c) Mike Lambert All Rights Reserved  Page 7 of 28
  545.  
  546.           
  547.         THE DISASTER RECOVERY DISKETTE  --  MAKING THE MAGIC FLOPPY
  548.  
  549.  
  550.         Here is a directory of the disk to make.
  551.         
  552.          Volume in drive A is DRF_DISK_1 
  553.          Volume Serial Number is 054B-1DF2
  554.          Directory of A:\
  555.         
  556.         COMMAND  COM     47845 04-09-91   5:00a
  557.         ATTRIB   EXE     15796 04-09-91   5:00a
  558.         CHKDSK   EXE     16200 11-11-91   5:00a
  559.         DEBUG    EXE     20634 04-09-91   5:00a
  560.         DISKCOPY COM     11793 04-09-91   5:00a
  561.         FDISK    EXE     57224 04-09-91   5:00a
  562.         FORMAT   COM     32911 04-09-91   5:00a
  563.         MEM      EXE     39818 04-09-91   5:00a
  564.         MORE     COM      2618 04-09-91   5:00a
  565.         SYS      COM     13440 04-09-91   5:00a
  566.         UNDELETE EXE     13924 11-11-91   5:00a
  567.         LABEL    EXE      9390 04-09-91   5:00a
  568.                12 file(s)     281593 bytes
  569.                                 3072 bytes free
  570.         
  571.         Why these programs?
  572.         
  573.         1. The disk is bootable and a clean, original for those virus 
  574.         disinfection tasks.
  575.         
  576.         2. This disk can now be DISKCOPYed again, deleting the unneces-
  577.         sary files to make new clean bootable DOS disks we'll need for 
  578.         later. LABEL will let us make new labels on the new disks. Remem-
  579.         ber when making new disks, cold boot the floppy disk, do not run 
  580.         any program on you hard disks, and then DISKCOPY a new disk.
  581.         
  582.         3. ATTRIB might be necessary to change other file attributes.
  583.         
  584.         4. FDISK and FORMAT will allow us to create a new hard disk if we 
  585.         ever have to start from scratch, or formatting new floppy disks.
  586.         
  587.         5. SYS allows us to copy the Boot Sector and system files to the 
  588.         hard disk if they are ever damaged.
  589.         
  590.         6. CHKDSK allows us to repair a damaged file structure if neces-
  591.         sary.
  592.         
  593.         7. MEM, MORE, DEBUG, and UNDELETE are always handy and since they 
  594.         are on a write protected disk, they would never be damaged if 
  595.         executed on a virus infected system.
  596.         
  597.         Put an external disk label on the disk and write on it the disk 
  598.         label name, density (360k), DOS Bootable version X, and any other 
  599.         information you desire. This disk in not computer specific.
  600.         
  601.         
  602.         
  603.         
  604.  
  605.  
  606.         Copyright 1993 (c) Mike Lambert All Rights Reserved  Page 8 of 28
  607.  
  608.           
  609.         THE DISASTER RECOVERY DISKETTE  --  MAKING THE MAGIC FLOPPY
  610.  
  611.  
  612.         4.2 DRF DISK 2
  613.         
  614.         The second disk will be used to backup critical system data and 
  615.         will contain some of the basic tools we may need in dealing with 
  616.         a problem. Keep in mind that this disk will contain THIS computer 
  617.         specific data, it must be identified as such and not used to 
  618.         restore system data to another computer.
  619.         
  620.         
  621.         Now, DISKCOPY the DRF_DISK_1 disk. Use LABEL to label the disk 
  622.         DRF_DISK_2. Delete all the files except COMMAND.COM on the new 
  623.         copy. This disk is bootable and if we don't infect it with a 
  624.         virus infected tool, it will remain clean. Its always a good idea 
  625.         to have multiple bootable disks in the DRF set.
  626.         
  627.         Copy your clean tools to the disk. Save the CMOS and MBR and then 
  628.         write protect the disk. Never run the programs to backup CMOS and 
  629.         the MBR to this disk unless you have booted one of your clean DRF 
  630.         disks. If the tools are virus free and you observe this warning, 
  631.         you will not accidentally infect this disk while it is write 
  632.         enabled. Make sure you write protect the disk after the CMOS and 
  633.         MBR are saved.
  634.         
  635.         
  636.         Here is the directory of DRF_DISK_2.
  637.         
  638.          Volume in drive A is DRF_DISK_2 
  639.          Volume Serial Number is 120B-08D9
  640.          Directory of A:\
  641.         
  642.         COMMAND  COM     47845 04-09-91   5:00a
  643.         CMOSCHK  COM       856 07-25-92   1:40a
  644.         CMOSREST COM       785 07-25-92   1:40a
  645.         CMOSSAVE COM       705 07-25-92   1:40a
  646.         CMOS     286       128 04-07-93  10:58p
  647.         GETMBR   COM      4362 04-06-93  11:53p
  648.         PUTMBR   COM      3909 04-06-93  10:50p
  649.         MBREPBR  REC      1536 04-07-93  10:58p
  650.         DISKEDIT EXE    135017 06-06-91   6:00a
  651.         DM       COM     36272 03-03-93   5:09p
  652.         VDE      COM     39502 10-25-89  10:40p
  653.         COMPARE  COM      2454 06-14-88  12:00a
  654.         D        COM      4618 02-23-86   5:46a
  655.         GETCHAR  COM        19 04-07-93  11:27p
  656.         AUTOEXEC BAT       580 04-07-93  12:05a
  657.                15 file(s)     278588 bytes
  658.                                 5120 bytes free
  659.           
  660.         
  661.         What are these programs?
  662.         
  663.         All the files beginning with CMOS are for saving, restoring, and 
  664.         comparing CMOS. CMOS.286 is the CMOS data. These files came from 
  665.         the CMOS11.xxx archive, a set of free programs by Roedy Green, 
  666.  
  667.  
  668.         Copyright 1993 (c) Mike Lambert All Rights Reserved  Page 9 of 28
  669.  
  670.           
  671.         THE DISASTER RECOVERY DISKETTE  --  MAKING THE MAGIC FLOPPY
  672.  
  673.  
  674.         Canadian Mind Products. The files were copied to the floppy, and 
  675.         CMOSSAVE was used to create CMOS.286. You can use any CMOS save 
  676.         and restore program you desire, these programs were selected 
  677.         because they are free, small, and work well in a batch file (see 
  678.         below).
  679.         
  680.         GETMBR and PUTMBR are the programs to save and restore the MBR 
  681.         and EPBRs to/from MBREPBR.REC. The files came from the 
  682.         MBRSAVE2.xxx archive, a set of free programs I wrote because I 
  683.         needed them. The files were copied to the floppy and GETMBR was 
  684.         used to create MBREPBR.REC. You can use any MBR/EPBR save and 
  685.         restore program you desire, these were selected because they are 
  686.         free, small, and work well in a batch file (see below).
  687.         
  688.         Five useful tools are also included. 
  689.         
  690.         DISKEDIT is Norton v6 disk editor for any hard disk surgery that 
  691.         may be needed. Include such a sector editor even if you do not 
  692.         know how to use it; if someone needs to do surgery on your hard 
  693.         disk, the tool is immediately available.
  694.         
  695.         VDE is an ASCII editor for working on CONFIG.SYS, AUTOEXEC.BAT, 
  696.         and any other configuration files that may need some work. (Have 
  697.         you ever modified CONFIG.SYS and the system won't boot?) Include 
  698.         an ASCII editor that you are familiar with.
  699.         
  700.         DM is a file manipulation utility that copies, deletes, moves, 
  701.         makes attribute changes, etc. It makes my life easier getting 
  702.         around on the disk. Include your favorite file management tool. I 
  703.         suggest that such a tool be small and be able to display and work 
  704.         with Hidden, System, and Read Only files.
  705.         
  706.         COMPARE is a file compare program that comes in handy when look-
  707.         ing for file differences. and D is a small directory program that 
  708.         produces nice 4 column, filename and size, paged directory lists. 
  709.         Its named D because I didn't want to type much for a directory.
  710.         
  711.         AUTOEXEC.BAT is just for this disk, it runs the CMOS and MBR 
  712.         compare programs and if any changes are made, you are allowed to 
  713.         restore the data from backup copies. 
  714.         
  715.         Please note that it is always a good idea to reboot the floppy 
  716.         after restoring the CMOS *and* the MBR/EPBRs. That means a reboot 
  717.         after each change you make. For instance, if you are restoring 
  718.         your CMOS because you lost your hard disk parameters, you must 
  719.         reboot before you could restore your MBR/EPBRs. When you reboot 
  720.         the same floppy, you work through the restoring in a logical 
  721.         order.
  722.         
  723.         Here is the AUTOEXEC.BAT:
  724.         
  725.  
  726.  
  727.  
  728.  
  729.  
  730.         Copyright 1993 (c) Mike Lambert All Rights Reserved  Page 10 of 28
  731.  
  732.           
  733.         THE DISASTER RECOVERY DISKETTE  --  MAKING THE MAGIC FLOPPY
  734.  
  735.  
  736.         ECHO OFF
  737.         REM See if the CMOS has changed
  738.         CMOSCHK CMOS.286
  739.         IF ERRORLEVEL 1 GOTO REST_CMOS
  740.         GOTO CHECK_MBR
  741.         :REST_CMOS
  742.         REM CMOS is does not match stored copy. Ask if it should be restored
  743.         ECHO The CMOS does not match the stored copy for the 286, do you  
  744.         want
  745.         ECHO to restore the CMOS settings from backup? (Yes / any other 
  746.         key)
  747.         GETCHAR
  748.         IF ERRORLEVEL 121 GOTO CHECK_HIGH
  749.         REM GETCHAR returns lowercase letter hit. 121 is y
  750.         GOTO CHECK_MBR
  751.         :CHECK_HIGH
  752.         REM Check for z
  753.         IF ERRORLEVEL 122 GOTO CHECK_MBR
  754.         CMOSREST CMOS.286
  755.         ECHO Now hit the RESET button to reboot this disk.
  756.         :WAIT4RESET
  757.         GOTO WAIT4RESET
  758.         :CHECK_MBR
  759.         REM Now check the MBR and EPBRs
  760.         PUTMBR
  761.         
  762.         This makes the disk very easy to use. Just boot the disk and it 
  763.         will immediately check those areas and give you an opportunity to 
  764.         restore them from backup copies if they are modified. Always 
  765.         reboot the computer after restoring CMOS or partition data. The 
  766.         DOS resident when you restore some of these areas may not consid-
  767.         er your hard disk as a DOS volume for instance.
  768.         
  769.         GETCHAR is used to get the user response if CMOS is different 
  770.         from the backup copy. Below is a debug script to make  
  771.         GETCHAR.COM:
  772.         
  773.         Cut out the file below and feed it to DEBUG, command line is:
  774.         
  775.         DEBUG < filename.typ
  776.         
  777.         -------------------------cut-here-----------------------
  778.          N GETCHAR.COM
  779.          E 0100 B8 08 0C CD 21 3C 41 72 06 3C 61 73 02 0C 20 B4
  780.          E 0110 4C CD 21
  781.          RCX
  782.          0013
  783.          W
  784.          Q
  785.         -------------------------cut-here-----------------------
  786.         
  787.         
  788.         Put an external disk label on the disk and write on it the disk 
  789.         label name, density (360k), DOS version, and any other informa-
  790.  
  791.  
  792.         Copyright 1993 (c) Mike Lambert All Rights Reserved  Page 11 of 28
  793.  
  794.           
  795.         THE DISASTER RECOVERY DISKETTE  --  MAKING THE MAGIC FLOPPY
  796.  
  797.  
  798.         tion you desire. Especially note that this disk is used for this 
  799.         particular computer. This disk contains THIS system specific 
  800.         data. Do NOT use this disk on another computer to recover the 
  801.         CMOS or MBR unless you know EXACTLY what you are doing.
  802.         
  803.         
  804.         
  805.         4.3 DRF DISK 3
  806.         
  807.         The third disk will have our backup recovery software, additional 
  808.         tools, and is bootable as well. This is the disk that will be 
  809.         used to boot the system and recover programs and data from backup 
  810.         copies. Once created, the disk should be write protected and need 
  811.         not be modified until there is a change in backup and recovery 
  812.         tools. Obviously before you know what programs and possible 
  813.         drivers should be on the disk, you must know how you will be 
  814.         making system backups, and how they will be recovered. This is 
  815.         called a Disaster Recovery Plan. If you don't know where to 
  816.         start, get dome guidance or start small and build a procedure.
  817.         
  818.         
  819.         This is the contents of DRF_DISK_3:
  820.         
  821.          Volume in drive A is DRF_DISK_3 
  822.          Volume Serial Number is 243B-0EE7
  823.          Directory of A:\
  824.         
  825.         COMMAND  COM     47845 04-09-91   5:00a
  826.         TAPE     EXE     64344 03-13-92   1:32p
  827.         MSD      EXE     64475 10-04-90  12:00a
  828.         PKUNZIP  EXE     23528 03-15-90   1:10a
  829.                 4 file(s)     200192 bytes
  830.                                90112 bytes free
  831.         
  832.         
  833.         In this example the 168Mb of disk space is backed up to tape. 
  834.         This is a portable tape drive using the parallel printer port so 
  835.         no special drivers are needed. Portable tape drivers are very 
  836.         convenient, the tape drive and this disk can service any number 
  837.         of systems (DOS 5 is the operating system on the floppy disk). If 
  838.         you divide the number of systems serviced by the cost of the 
  839.         single drive, add the cost of the tapes for each system, subtract 
  840.         the time required to save and restore multiple diskettes, you 
  841.         might be surprised how quickly it becomes cost effective.
  842.         
  843.         I have also included Microsoft Diagnostics v1.0 since there was 
  844.         extra space available on the disk. This would be the place we 
  845.         would include any other utilities we may need. 
  846.         
  847.         Put an external disk label on the disk and write on it the disk 
  848.         label name, density (360k), DOS version, and any other informa-
  849.         tion you desire. Also note the backup/restore software on the 
  850.         disk for easy reference.
  851.         
  852.  
  853.  
  854.         Copyright 1993 (c) Mike Lambert All Rights Reserved  Page 12 of 28
  855.  
  856.           
  857.         THE DISASTER RECOVERY DISKETTE  --  MAKING THE MAGIC FLOPPY
  858.  
  859.  
  860.         4.4 DRF DISK 4
  861.         
  862.         The fourth disk will contain software necessary to low level 
  863.         format the hard disk or diagnose hard disk problems. This will 
  864.         take a little effort to ascertain the type of disk and where the 
  865.         low level format or diagnostics you need are. This effort is best 
  866.         expended now before you need it.
  867.         
  868.         I don't want to say that this disk is required by every user, the 
  869.         general computer user may wish to depart here satisfied to pay 
  870.         someone to do this kind of work if necessary. This is fine, stay 
  871.         in your comfort level. My point here is NOT to tell you EXACTLY 
  872.         what you need and HOW to do it, the point is to get you to find 
  873.         out this information from your hard disk manufacturer. The varie-
  874.         ty of manufacturers, drives, and procedures make it impossible to 
  875.         provide a simple list of steps to satisfy all formatting require-
  876.         ments.
  877.         
  878.         It is important that you have your disk drive documentation and 
  879.         all of the information on the format parameters for your hard 
  880.         disk. Consult your hard disk manufacturer and acquire all docu-
  881.         mentation and information you will need in the event you must low 
  882.         level format your hard disk. See Appendix A where I do just this.
  883.         
  884.         
  885.         If you have the older MFM or RLL drives and the low level format 
  886.         routine is in the hard disk controller ROM (almost all cases), 
  887.         you won't need to make this disk.  You'll use DEBUG on disk 1 and 
  888.         you will have to know your hard disk's format parameters. Follow 
  889.         the directions of your disk drive manufacturer and documentation.
  890.         
  891.         If you have SCSI drives, can probably use DEBUG and the format 
  892.         routine in the ROM BIOS. You may have something along the line I 
  893.         have on disk 4. SCSI drives come with the necessary low level 
  894.         format and diagnostic software in most cases. Follow the direc-
  895.         tions of your disk drive manufacturer and documentation. In my 
  896.         case it is Ontrack's Disk Manager. See Appendix C for general 
  897.         information of Disk Manager's capabilities.
  898.         
  899.         If you have EDSI drives, check with your disk and controller 
  900.         manufacturer. Chances are that you will be using DEBUG on disk 1 
  901.         and formatting as the MFM users do with DEBUG if the controller 
  902.         ROM is disabled. You'll still need your hard disk's format param-
  903.         eters. Follow the directions of your disk drive manufacturer and 
  904.         documentation.
  905.         
  906.         If you have IDE drives, you probably do not have any software to 
  907.         format or diagnose your drives. I encourage you to contact your 
  908.         hard disk manufacturer and obtain ALL information on the hard 
  909.         disk and any utilities that may be available.  **The manufacturer 
  910.         is the best source for software and instructions to format your 
  911.         IDE drive.**  In some cases the diagnostic programs available 
  912.         will take care of most low level problems you are likely to 
  913.         encounter. This may take some time to acquire. By doing it now, 
  914.  
  915.  
  916.         Copyright 1993 (c) Mike Lambert All Rights Reserved  Page 13 of 28
  917.  
  918.           
  919.         THE DISASTER RECOVERY DISKETTE  --  MAKING THE MAGIC FLOPPY
  920.  
  921.  
  922.         you save yourself the trouble when you are pressed for time 
  923.         trying to get your disk up and running again. Follow the direc-
  924.         tions of your disk drive manufacturer and documentation.
  925.         
  926.         For those that cannot acquire adequate software from your disk 
  927.         manufacturers (myself included), consider using Ontrack Systems' 
  928.         product, Disk Manager v5.21 (current Mar 93). This software is 
  929.         "aware" of most problems you would encounter and can fix them. 
  930.         More than one drive manufacturer has told me that IF you HAVE to 
  931.         LLF your hard disk, Disk Manager is the preferred utility. 
  932.         **Always follow the guidance and instructions given by your drive 
  933.         manufacturer.**  You may still get some information from your 
  934.         drive manufacturer. This information is drive specific, you will 
  935.         need this to override some of the defaults Disk Manager uses if 
  936.         necessary. See Appendix B for more information on IDE drives and 
  937.         Appendix C for Ontrack's Disk Manager information, it can do more 
  938.         than just LLF format your disk. If you are in a situation that 
  939.         normal Data Recovery Specialists cannot recover your system, 
  940.         Ontrack also provides advanced data recovery services.
  941.         
  942.         
  943.         Here is my DRF_DISK_4 with the Disk Manager software to service 
  944.         my SCSI drives.
  945.         
  946.         
  947.          Volume in drive A is DRF_DISK_4 
  948.          Volume Serial Number is 2E50-0EE2
  949.          Directory of A:\
  950.         
  951.         INSTALLR EXE     32766 10-20-88  11:06a
  952.         README   1ST     15319 10-20-88   3:48p
  953.         CONFIG   SYS        35 10-28-88  12:00p
  954.         DM       EXE     76608 10-28-88  12:00p
  955.         DMDRVR   BIN      7772 10-28-88  12:00p
  956.         DM       REF     73078 10-28-88  12:00p
  957.         DIAG     EXE     47552 10-28-88  12:00p
  958.         DIAG     REF     12135 10-28-88  12:00p
  959.         DISKPARK COM      2867 10-28-88  12:00p
  960.         DISKPARK REF      2214 10-28-88  12:00p
  961.         HARDWARE REF     20041 10-28-88  12:00p
  962.         DMCFIG   EXE      8512 10-28-88  12:00p
  963.         DMCFIG   REF      5604 10-28-88  12:00p
  964.         ONLINE   HLP     28513 10-28-88  12:00p
  965.         README           14927 10-28-88  12:00p
  966.                15 file(s)     347943 bytes
  967.                                 8192 bytes free
  968.         
  969.         
  970.         
  971.         5. USING THE DISASTER RECOVERY DISK
  972.         
  973.         Now that we've created these four disks, let's take a look at 
  974.         some of the risks we faced and how these disks will help us solve 
  975.         our problem.
  976.  
  977.  
  978.         Copyright 1993 (c) Mike Lambert All Rights Reserved  Page 14 of 28
  979.  
  980.           
  981.         THE DISASTER RECOVERY DISKETTE  --  MAKING THE MAGIC FLOPPY
  982.  
  983.  
  984.         If you think that because you may not know how to use every tool, 
  985.         and therefore should not prepare a Disaster Recovery Disk(s), 
  986.         please reconsider. If you have a problem and cannot deal with it, 
  987.         you will probably call upon a Data Recovery Specialist to solve 
  988.         your problem. While the Data Recovery Specialist will have the 
  989.         equivalent of disk 1, the data saved on disk 2 is unique to you. 
  990.         The cost of NOT providing disk 2 to a Data Recovery Specialist 
  991.         may convince you to have it in the future. Disk 3 is the software 
  992.         you are using to backup and restore your system, if the Data 
  993.         Recovery Specialist doesn't have what you need, they may have to 
  994.         purchase it. Guess who pays for that purchase. If the Data Recov-
  995.         ery Specialist does not have the equivalent of disk 4, guess who 
  996.         might paying them while they acquire it!
  997.         
  998.         
  999.         5.1 Real Disasters
  1000.         
  1001.         The easiest way to get an idea of what value this preparation is, 
  1002.         is to look at some real things that happen and how these disks 
  1003.         help us solve them.
  1004.         
  1005.         
  1006.         5.1.1 CMOS loss
  1007.         
  1008.         A variety of things can happen that can affect the contents of 
  1009.         CMOS. A power surge can corrupt the contents of CMOS. Of course, 
  1010.         you, the user can change your CMOS settings. At least one virus 
  1011.         is known to modify CMOS contents. If you ever "take your system 
  1012.         to the shop" to get it repaired, whose to say what will be there 
  1013.         when you get it back? And since batteries do not last forever, 
  1014.         one day, if you keep your computer long enough, the battery will 
  1015.         fail. You'll have a few hours to get a new battery and replace 
  1016.         it, but if you've got the data backed up, you won't have to worry 
  1017.         about rushing out and buying one.
  1018.         
  1019.         I was installing a computer system and needed to install a lan 
  1020.         card. When I opened the case, I found that the motherboard was 
  1021.         bowed a bit. I had to remove and reinstall it. Somehow during the 
  1022.         maneuver, I must have shorted the CMOS because when I powered up 
  1023.         the system, no hard drive! Well, the IDE drive in the computer 
  1024.         was not in the list of known drives in the BIOS. I needed to 
  1025.         enter all of the drive characteristics. I could open the computer 
  1026.         and hope that they were written on the hard drive where I could 
  1027.         see it, or restore our backup copy. 
  1028.         
  1029.         All I had to do to get me out of this situation was insert DRF 
  1030.         Disk 2 and boot the computer. The CMOSCHK program in the AUTOEX-
  1031.         EC.BAT told me that the CMOS setting were different from the 
  1032.         saved copy. When asked if I wanted to restore the data, I merely 
  1033.         had to answer yes. I did, rebooted the computer, the AUTOEXEC.BAT 
  1034.         ran again rechecking CMOS and MBR. Everything was fine; I reboot-
  1035.         ed the hard disk and was able to continue with my work.
  1036.         
  1037.         
  1038.  
  1039.  
  1040.         Copyright 1993 (c) Mike Lambert All Rights Reserved  Page 15 of 28
  1041.  
  1042.           
  1043.         THE DISASTER RECOVERY DISKETTE  --  MAKING THE MAGIC FLOPPY
  1044.  
  1045.  
  1046.         5.1.2 The MBR
  1047.         
  1048.         The MBR seems to be one of those things that gets stepped on 
  1049.         often. Viruses present a constant threat. MBR infectors are 
  1050.         common viruses and "disinfecting" the system seems a mysterious 
  1051.         affair. Many users find that the virus still haunts them after 
  1052.         repeated attempts to "disinfect" their system. More than one 
  1053.         novice DEBUG user has overwritten the MBR accidentally. There are 
  1054.         programs that modify the MBR and many seasoned users will still 
  1055.         stay well away from the mysterious MBR.
  1056.         
  1057.         See section 5.1.5 for the "conventional wisdom" of solving the 
  1058.         MBR virus "disinfection". Read it once so you know what you will 
  1059.         hear, then forget about following that advice. Low Level Format 
  1060.         is NOT the solution for virus "disinfection". The way you should 
  1061.         always get rid of any virus is to overwrite the virus with the 
  1062.         correct information, file, etc. If the virus has infected the 
  1063.         MBR, it is the MBR that needs to be fixed. 
  1064.         
  1065.         DRF Disk 2 is your answer for all your MBR problems. All we have 
  1066.         to do is stick DRF Disk 2 and hit the reset button. PUTMBR in the 
  1067.         AUTOEXEC.BAT file runs, finds the MBR is different and asks if it 
  1068.         should be replaced with the backup copy. We answer yes, hit the 
  1069.         reset button to reboot DRF Disk 2 and we find the pesky virus is 
  1070.         gone. The whole "disinfection" process takes a couple of minutes, 
  1071.         is done right, and we've back computing again. Compare that with 
  1072.         any "low level format your disk" advice you get!
  1073.         
  1074.         
  1075.         5.1.3 The Unbootable Hard Disk
  1076.         
  1077.         This has got to be the problem that occurs the most. If the MBR 
  1078.         is good, the problem lies in the Boot Sector or the Operating 
  1079.         System files (to include CONFIG.SYS and AUTOEXEC.BAT). DRF Disk 1 
  1080.         is the answer to this problem.
  1081.         
  1082.         Before we assume it is a problem booting that disk with the 
  1083.         operating system, it would be a good idea to boot DRF Disk 1, 
  1084.         rename CONFIG.SYS and AUTOEXEC.BAT, and then reboot the hard 
  1085.         disk. If it still doesn't come up, then the problem is located in 
  1086.         the BS or the operating system executable files. If the system 
  1087.         does boot, the problem is in the CONFIG.SYS or AUTOEXEC.BAT 
  1088.         files. In that case, fixing CONFIG.SYS or AUTOEXEC.BAT is the 
  1089.         answer. Otherwise, when it is the BS or operating system executa-
  1090.         ble files, SYS is probably the answer.
  1091.         
  1092.         I have a friend whose daughter takes a laptop computer off to 
  1093.         college. Every time she comes home for a visit, she has computer 
  1094.         in hand and after explaining that one of her "computer expert" 
  1095.         friends tried to fix her computer, it doesn't boot anymore. The 
  1096.         first time I got this call we made a DRF Disk 1 over the phone 
  1097.         and used SYS to replace the Boot Sector and Operating System 
  1098.         files. Dad keeps a copy of the disk and on the subsequent com-
  1099.         plaints, just boots DRF Disk 1 and types in SYS C:.
  1100.  
  1101.  
  1102.         Copyright 1993 (c) Mike Lambert All Rights Reserved  Page 16 of 28
  1103.  
  1104.           
  1105.         THE DISASTER RECOVERY DISKETTE  --  MAKING THE MAGIC FLOPPY
  1106.  
  1107.  
  1108.         Consider this other real story. User A needed a file on a tape 
  1109.         that User B had backup up to tape. User A, while running tape 
  1110.         restore program accidentally copied one of the Operating System 
  1111.         files to their own C:. User A wasn't aware that User B wasn't 
  1112.         running the same version of DOS. User A found out the hard way 
  1113.         when the system wouldn't boot the next day. Fortunately DRF Disk 
  1114.         1 was available, User A booted DRF Disk 1 and ran SYS to put new 
  1115.         copies of the correct DOS to the hard disk.
  1116.         
  1117.         There are also several viruses that infect the Boot Sector of the 
  1118.         hard disk or one of the DOS system files. DRF Disk 1 is the 
  1119.         answer to these problems, just boot DRF Disk 1 and SYS C:.
  1120.         
  1121.         The single most common target of a virus is COMMAND.COM. In these 
  1122.         cases, booting any of the bootable DRF disks and copying 
  1123.         COMMAND.COM to C: is the answer. COPY COMMAND.COM C:\ is the 
  1124.         command. Note that earlier versions of DOS did not copy 
  1125.         COMMAND.COM to the target disk with SYS. If you decide to use SYS 
  1126.         when cleaning a virus from system files, always follow it with a 
  1127.         COPY COMMAND.COM C:\.
  1128.         
  1129.         In every case of a virus infection, you'll always hear "Boot a 
  1130.         clean copy of DOS and scan your computer for viruses". DRF Disk 1 
  1131.         is that disk. This disk is so important, that's why I said to 
  1132.         "never remove the write protect from this disk" earlier when we 
  1133.         created DRF Disk 1. Besides, I've seen more than one case that 
  1134.         dirty bus or cable connector connections cause the floppy disk to 
  1135.         write garbage to the floppy disk. This can't (shouldn't) happen 
  1136.         if the disk is write protected.
  1137.         
  1138.         Many times you will hear that "the virus destroyed the low level 
  1139.         format", and its just not true. Remember Michelangelo? I heard 
  1140.         many say that is what it did. It didn't. The virus just wrote all 
  1141.         over all of the beginning portion of the hard disk. This de-
  1142.         stroyed the MBR, BS, FAT, Root directory, and whatever data was 
  1143.         in it's reach. Well, this sure made the disk unbootable!
  1144.         
  1145.         The solution for this is DRF Disk 1. It will boot the system and 
  1146.         has an operating system, FDISK, and FORMAT on it. This is all 
  1147.         that will be needed to create new hard disk partitions. Here's 
  1148.         the way it would go:
  1149.         
  1150.         1. Boot DRF Disk 1
  1151.         2. Use FDISK to create the necessary partitions, take care to 
  1152.             ensure that the primary DOS partition is Active.
  1153.         3. Use FORMAT to DOS format the partitions
  1154.         4. If you didn't use the /s switch when formatting the primary
  1155.             DOS partition, use SYS C:
  1156.         5. Use DRF Disk 3 and recover programs and data from you backup
  1157.             copies
  1158.         6. Boot DRF Disk 1, put in DRF Disk 2, and backup a new copy of
  1159.             your MBR and EPBRs. Write protect DRF Disk 2 when finished.
  1160.         
  1161.         An interesting note on Michelangelo: if you have a large disk and 
  1162.  
  1163.  
  1164.         Copyright 1993 (c) Mike Lambert All Rights Reserved  Page 17 of 28
  1165.  
  1166.           
  1167.         THE DISASTER RECOVERY DISKETTE  --  MAKING THE MAGIC FLOPPY
  1168.  
  1169.  
  1170.         let's say with a 32Mb C: and D: etc., the chances are that the 
  1171.         extended partitions are still there. Remember that we have a copy 
  1172.         of the MBR and the EPBRs on DRF Disk 2. If you restored the MBR 
  1173.         and EPBRs, the chances are that you can reboot your system with 
  1174.         DRF Disk 1 and have access to all the logical drives in the 
  1175.         extended partition. 
  1176.         
  1177.         
  1178.         5.1.4 Recovering Files From Backup Copies
  1179.         
  1180.         Everyone has had some reason or another to have to get a backup 
  1181.         copy of a file. Whether it is a virus, accidentally deleting a 
  1182.         file and then not being able to undelete it, or the infamous 
  1183.         FORMAT C:, having DRF Disk 3 and a current back is the answer.
  1184.         
  1185.         Some time ago, I brought down my FAX/BBS system to change a disk 
  1186.         controller. Drive C: hosts DOS and the FAX, drive D: hosts the 
  1187.         BBS. I powered up after replacing the disk controller and drive 
  1188.         C: would not spin up. I had to replace the disk and start from 
  1189.         scratch. I booted DRF Disk 1, prepared the new disk with DRF Disk 
  1190.         4, and recovered everything using DRF Disk 3 and the tape backup 
  1191.         I made just before powering the system down. I then backed up the 
  1192.         new MBR to DRF Disk 2 and I was finished. It would have been a 
  1193.         real disaster if I hadn't been prepared.
  1194.         
  1195.         Consider another example. A client uses DOS 4 and a third party 
  1196.         memory manager. It was configured when the computer was pur-
  1197.         chased. One day the memory manager had an exception error and 
  1198.         halted the computer. The only way to restart the computer was the 
  1199.         reset button. Logical drive D: is used to store the databases. As 
  1200.         you might expect, when the system halted, all the database files 
  1201.         were left open and who knows what the system was doing when the 
  1202.         error occurred. The result was logical drive D: was a total loss. 
  1203.         The file structure was so corrupted, it wasn't worth trying to 
  1204.         fix.
  1205.         
  1206.         DRF Disks 1 and 3 came to the rescue. DRF Disk 1 was booted and 
  1207.         D: was DOS formatted. DRF Disk 3 was used to recover all of the 
  1208.         databases back to D:. The end result was that the system was back 
  1209.         up in 35 minutes and only three hours work was lost (good backup 
  1210.         procedures).
  1211.         
  1212.         This is not as difficult as it seems. Executables only need to be 
  1213.         backed up once, and data after you have changed it. If you take 
  1214.         the time to determine how you want to backup and then put those 
  1215.         backup and restore programs on DRF Disk 3, it is an easy matter 
  1216.         to use DRF Disk 3 and recover anything you need.
  1217.         
  1218.         I prefer recovery from backups to the "disinfection" method of 
  1219.         recovering from a virus infection. It is a simple matter to just 
  1220.         copy all the executables from your clean, original backup copy. 
  1221.         While "disinfection" is attractive because some feel it "easier", 
  1222.         "disinfection" is not an exact science. Any responsible Data 
  1223.         Recovery Specialist will always choose "restore from backup" to 
  1224.  
  1225.  
  1226.         Copyright 1993 (c) Mike Lambert All Rights Reserved  Page 18 of 28
  1227.  
  1228.           
  1229.         THE DISASTER RECOVERY DISKETTE  --  MAKING THE MAGIC FLOPPY
  1230.  
  1231.  
  1232.         "disinfection". Remember that it is your data that is going to 
  1233.         manipulated by the program that was "disinfected". What would 
  1234.         happen to your data if the program that manipulates it was not 
  1235.         disinfected properly?
  1236.         
  1237.         
  1238.         5.1.5 Read Errors and Low Lever Formatting
  1239.         
  1240.         The first caveat for this section is:
  1241.         
  1242.         If you don't know what you are doing, STOP! Find someone who does 
  1243.         know what they are doing and get some help. YOU are responsible 
  1244.         when you format your hard disk. Take due care and you will proba-
  1245.         bly not have any difficulty.
  1246.         
  1247.         The "convention wisdom" for "disinfecting" an MBR virus such as 
  1248.         Stoned, Michelangelo, Joshi, NoInt, multi-partite, etc. viruses 
  1249.         is "to low level format your hard disk". This is NOT true! If 
  1250.         someone tells you this, you should immediately find someone knows 
  1251.         what they are talking about! The only reason someone tells you to 
  1252.         Low Level Format the hard disk is because they know of no other 
  1253.         way to rewrite the MBR.
  1254.         
  1255.         NEVER USE A LOW LEVEL FORMAT TO SOLVE A VIRUS PROBLEM! unless you 
  1256.         have reliable information from an EXPERT that the low level 
  1257.         format is damaged. There are many of people who pretend they 
  1258.         know; they don't! 
  1259.         
  1260.         There is only one virus that I ever heard of that ACTUALLY modi-
  1261.         fied the format of a track on the hard disk. I've never actually 
  1262.         seen it so I can't even verify this rumor. Remember, don't demol-
  1263.         ish the house to fix a leaking faucet. Note in Appendix C that 
  1264.         Disk Manager is capable of formatting single tracks. If a track's 
  1265.         format was lost, it could be repaired without formatting the 
  1266.         entire disk.
  1267.         
  1268.         If you do have an MBR virus, you should go to section 5.1.2.
  1269.         
  1270.         
  1271.         DO NOT ATTEMPT TO LLF YOUR HARD DISK UNLESS YOU:
  1272.         
  1273.         1. Have tried all other options to get your hard disk "up".
  1274.         2. Are reasonably sure that a LLF WILL solve your problem.
  1275.         3. You have all the information you need for the formatting
  1276.             session.
  1277.         4. You have the appropriate software.
  1278.         5. You have an alternate plan in case the worst happens.
  1279.         
  1280.         
  1281.         I have seen disk problems when reorienting a computer. On occa-
  1282.         sion I've experienced a high number of read errors because the 
  1283.         drive was turned on its side. In this case, I reoriented the 
  1284.         computer again so that the drive was on its front, backed up the 
  1285.         disk, turned the system on its side, reformatted the disk and 
  1286.  
  1287.  
  1288.         Copyright 1993 (c) Mike Lambert All Rights Reserved  Page 19 of 28
  1289.  
  1290.           
  1291.         THE DISASTER RECOVERY DISKETTE  --  MAKING THE MAGIC FLOPPY
  1292.  
  1293.  
  1294.         then copied all of the backup programs and data to the hard disk.
  1295.         
  1296.         If you can boot the hard disk and read your data, this is the 
  1297.         time to make a current backup.
  1298.         
  1299.         If you do have to address this formatting issue, you'll need DRF 
  1300.         Disk 1, 2, 3, and 4. DRF Disk 1 if you can't boot your hard disk, 
  1301.         DRF Disk 4 to do the necessary low level formatting, and DRF Disk 
  1302.         3 to recover all your programs and data from your backup copy. 
  1303.         Make a new backup copy of your MBR on DRF Disk 2.
  1304.         
  1305.         Here's how the reformatting session goes:
  1306.         
  1307.         YOU SHOULD NOT ATTEMPT TO DO LOW LEVEL FORMATTING UNLESS YOU HAVE 
  1308.         ALL OF THE INFORMATION YOU WILL NEED AND YOU KNOW WHAT YOU ARE 
  1309.         DOING. 
  1310.         
  1311.         1. Boot the system with DRF Disk 1.
  1312.         2. Use your disk maintenance software on DRF Disk 4 to diagnose, 
  1313.         repair, or format the hard disk.
  1314.         
  1315.         CONSULT YOUR DISK CONTROLLER AND DISK DRIVE DOCUMENTATION AND 
  1316.         FOLLOW THE INSTRUCTIONS.
  1317.         
  1318.         Once the hard disk has been reformatted you will need to put DOS 
  1319.         partitions on the disk.
  1320.         
  1321.         3. Use FDISK to partition the disk. If you have a large disk, 
  1322.         consider partitioning it into two partitions. The idea behind 
  1323.         this is to have a relatively small C: that holds your DOS, device 
  1324.         drivers, utilities, batch files, recovery software, etc. Use the 
  1325.         rest of the disk for D: where you make it your default disk and 
  1326.         do all of your work in that partition. The reasoning behind this 
  1327.         is that if something destroys your current partition (D:), if C: 
  1328.         has not been destroyed, you will be able to boot C: and have all 
  1329.         of the tools necessary to recover D: from backup copies.
  1330.         
  1331.         Ensure that the Primary DOS Partition is Active.
  1332.         
  1333.         4. Use FORMAT to prepare the partitions for DOS. FORMAT C: /S 
  1334.         will put a copy of the operating system files on C: and make it 
  1335.         bootable.
  1336.         
  1337.         5. Use your software to restore your software and data from your 
  1338.         backup copy.
  1339.         
  1340.         6. Backup your new MBR on DRF_DISK_2.
  1341.         
  1342.         This will be the time that you will discover what other utilities 
  1343.         you need to have available. Make a list and copy them to 
  1344.         DRF_DISK_2 or DRF_DISK_3 if space is available. Create a new 
  1345.         DRF_DISK_5 if necessary. DRF_DISK_5 does not have to be bootable.
  1346.         
  1347.         
  1348.  
  1349.  
  1350.         Copyright 1993 (c) Mike Lambert All Rights Reserved  Page 20 of 28
  1351.  
  1352.           
  1353.         THE DISASTER RECOVERY DISKETTE  --  MAKING THE MAGIC FLOPPY
  1354.  
  1355.  
  1356.         6. OTHER SOFTWARE
  1357.         
  1358.         Carefully consider what is important to you and your system. 
  1359.         Prepare to add any additional software that will be of use in 
  1360.         recovering your system.
  1361.         
  1362.         
  1363.         6.1 More DOS
  1364.         
  1365.         Examine your use of the DOS capabilities. Perhaps you are using 
  1366.         MIRROR, DRIVER.SYS, etc. Be sure to add these programs and any 
  1367.         data to your recovery disks if you will be needing them.
  1368.         
  1369.         With the advent of DOS 6.0 there are new capabilities and addi-
  1370.         tional DOS software (and more disks) may be required. For in-
  1371.         stance: If compressed partitions are used, DBLSPACE.BIN will be 
  1372.         required. In fact, it is nor an operating system file so it will 
  1373.         be included on your bootable disks when you FORMAT x: /S or    
  1374.         SYS x:, costing you approximately 51k on each bootable volume.
  1375.         
  1376.         
  1377.         6.2 Generic Virus Detectors
  1378.         
  1379.         Those that use generic virus detectors and followed your manufac-
  1380.         turer's directions have an emergency recovery disk. Of course 
  1381.         this is a part of the Disaster Recovery Disk set. Good generic 
  1382.         detector products also save all critical data (CMOS, MBR, EPBRs). 
  1383.         This should overlap the data and recovery utilities on DRF Disk 
  1384.         2. Be sure you know how to use this software in the event of a 
  1385.         virus problem. It may be possible that the AV software may not be 
  1386.         able to restore your MBR unless C: can be accessed through DOS as 
  1387.         C:. In this event, the separate save and restore programs and 
  1388.         data on DRF Disk 2 will be required.
  1389.         
  1390.         
  1391.         6.3 Communications Software
  1392.         
  1393.         It would be a very good idea to have a set of your communications 
  1394.         software available in case you need to acquire other software to 
  1395.         effect your recovery.
  1396.         
  1397.         
  1398.         6.4 Other Virus Detection Utilities
  1399.         
  1400.         If its a virus infection that you are faced with and you are not 
  1401.         using a generic detector, virus detection utilities (often called 
  1402.         scanners) may be able to identify a subset of the software you 
  1403.         will need to replace. If you choose this method, be sure to keep 
  1404.         these utilities up to date and free of virus infection. Most good 
  1405.         scanners have the capability to add external signatures for 
  1406.         viruses that the scanner does not recognize. Remember you have an 
  1407.         ASCII editor on DRF_DISK_2 so don't use the possibly infected 
  1408.         editor on the hard disk. Put the external string file on C: 
  1409.         instead of removing the write protect from your scanner DRF disk. 
  1410.  
  1411.  
  1412.         Copyright 1993 (c) Mike Lambert All Rights Reserved  Page 21 of 28
  1413.  
  1414.           
  1415.         THE DISASTER RECOVERY DISKETTE  --  MAKING THE MAGIC FLOPPY
  1416.  
  1417.  
  1418.         7. SUMMARY
  1419.         
  1420.         If you take the time to plan for restoring your system, a disas-
  1421.         ter becomes an inconvenience. An inconvenience is always dealt 
  1422.         with more efficiently than a disaster is. The first thing you'll 
  1423.         need is Disaster Recovery Disks. It is important that you review 
  1424.         your situation, resources, and computer use so that you will have 
  1425.         all the tools you will need, when you need them. These tools will 
  1426.         get you started, but remember that without backup copies of your 
  1427.         programs and data, the Disaster Recovery Disks are of limited 
  1428.         use. You must also come up with a backup and recovery strategy 
  1429.         that will provide you with backup copies that will restore your 
  1430.         system so you can get back to work when the worst happens.
  1431.         
  1432.         
  1433.         
  1434.         
  1435.         
  1436.         
  1437.         Acknowledgements
  1438.         ----------------
  1439.         Microscience is the maker of Hard Disk drives and the author has
  1440.               been unable to locate them.
  1441.         
  1442.         CMOSCHK.COM, CMOSSAVE.COM, and CMOSREST.COM are authored by
  1443.               Roedy Green, Canadian Mind Products, Vancouver BC Canada
  1444.               and can be freely used for any purpose except military.
  1445.               Filename is CMOS11.xxx where xxx is an archive extension.
  1446.         
  1447.         GETMBR.COM and PUTMBR.COM are authored by Mike Lambert, Herndon,
  1448.               VA and can be freely used but no fee can be excepted for
  1449.               providing the programs.
  1450.               Filename is MBRSAVE2.xxx where xxx is an archive extension.
  1451.         
  1452.         
  1453.         
  1454.         
  1455.         Trademarks
  1456.         ----------
  1457.         Disk Manager is a registered trademark of Ontrack Computer
  1458.                       Systems, Inc.
  1459.         
  1460.         7213A is a trademark of Maxtor Corporation
  1461.         
  1462.         DBLSPACE is a trademark of Microsoft Corporation
  1463.         
  1464.  
  1465.  
  1466.  
  1467.  
  1468.  
  1469.  
  1470.  
  1471.  
  1472.  
  1473.  
  1474.         Copyright 1993 (c) Mike Lambert All Rights Reserved  Page 22 of 28
  1475.  
  1476.           
  1477.         THE DISASTER RECOVERY DISKETTE  --  MAKING THE MAGIC FLOPPY
  1478.  
  1479.  
  1480.         APPENDIX A   Getting Info on the Hard Disk
  1481.         
  1482.         This section is very short, its just too simple!
  1483.         
  1484.         I have two IDE drives in my 386. The first was a Microscience 
  1485.         115Mb drive. Unfortunately I did not try to get information from 
  1486.         the manufacturer before that was no longer possible. This illus-
  1487.         trates the need to do so as soon as possible.
  1488.         
  1489.         The second drive I have is a Maxtor 7213A. It was packaged by a 
  1490.         reseller who provided limited information; really, installation 
  1491.         instructions only. Their tech support gave me the expected, "its 
  1492.         impossible to do" answer to my LLF maintenance questions.
  1493.         
  1494.         I found that Maxtor has an 800 number for technical support. I 
  1495.         invested 10 minutes and phoned Maxtor. I told them that I would 
  1496.         like to get all the information possible on the 7213A to include 
  1497.         any support utilities, along with LLF information. 
  1498.         
  1499.         Maxtor was very helpful. While they did not provide a formatter 
  1500.         for the 7213A, they could provide two things. First, a number of 
  1501.         utilities and information available on their BBS; and second, 
  1502.         Ontrack's Disk Manager was the suggested software to Low Level 
  1503.         Format the 7213A (just take the defaults for that drive model and 
  1504.         go! they said). I was given a few filenames on the BBS that were 
  1505.         pertinent to my hard drive.
  1506.         
  1507.         I called their BBS and spent 20 minutes downloading several files 
  1508.         that included an initialization utility, full specifications on 
  1509.         the drive, jumper settings (necessary for adding a second IDE 
  1510.         drive, etc.), IDE drive identification utilities, etc.
  1511.         
  1512.         I printed out the information on my model drive and included it 
  1513.         in the scanty "manual" I got from the reseller. I copied all the 
  1514.         files to my disaster recovery disk for that system.
  1515.         
  1516.         Now, I'm ready for the possibility of handling an LLF problem on 
  1517.         my Maxtor IDE drive. Even if I was not able to do the work my-
  1518.         self, the information is invaluable for the Data Recovery Spe-
  1519.         cialist that may have to work on my drive if necessary (not to 
  1520.         mention the jumper settings for multiple drive configurations). 
  1521.         In the environment with malicious software that can damage my 
  1522.         hard disk, it is comforting to be prepared.
  1523.         
  1524.  
  1525.  
  1526.  
  1527.  
  1528.  
  1529.  
  1530.  
  1531.  
  1532.  
  1533.  
  1534.  
  1535.  
  1536.         Copyright 1993 (c) Mike Lambert All Rights Reserved  Page 23 of 28
  1537.  
  1538.           
  1539.         THE DISASTER RECOVERY DISKETTE  --  MAKING THE MAGIC FLOPPY
  1540.  
  1541.  
  1542.         APPENDIX B   Large Drive Format Issues
  1543.         
  1544.         Let's look at a few of the problem areas that are encountered 
  1545.         with large drives and formatting. These are translation, defect 
  1546.         management, skewing, Zone Bit Recording, and track alignment. 
  1547.         This is not an in depth technical discussion on every technical 
  1548.         issue, but a general information discussion of the larger issues 
  1549.         to illustrate why LLF has gotten to be a very complex task. With 
  1550.         this general information, you will be able to appreciate the work 
  1551.         involved, why special software is needed, and why some will just 
  1552.         tell you "that it can't be done" (the easy way out).
  1553.         
  1554.         I do not provide a hard disk background and this discussion is 
  1555.         not geared for the novice. There are many books that describe 
  1556.         disks, platters, cylinders, heads, etc. If you have difficulty 
  1557.         with this section, read one of these books to become familiar 
  1558.         with disk drive characteristics.
  1559.         
  1560.         
  1561.         Translation
  1562.         -----------
  1563.         Large capacity drives, mostly the popular IDE drives, provide the 
  1564.         large capacity by having a large number of cylinders per disk and 
  1565.         possibly a large number of sectors per track. These values fall 
  1566.         outside of the primitive BIOS protocol that DOS must use to 
  1567.         access the drive. It is the limits of this BIOS protocol that is 
  1568.         responsible for the problems we now see. In the space of two 16-
  1569.         bit words, the cylinder, head, and sector have to be specified. 
  1570.         Because of the limited number of bits available, there are maxi-
  1571.         mum values that can be specified. DOS actually converts its 
  1572.         needed sector into a logical block number and then converts it to 
  1573.         the BIOS protocol Head, Cylinder, Sector. The BIOS then converts 
  1574.         it back to a logical block number. (Silly but true). 
  1575.         
  1576.         When the drive's physical geometry lays outside this protocol 
  1577.         capability, the area cannot be "used by DOS". "Used by DOS" is a 
  1578.         misleading statement, its actually "outside of the BIOS interface 
  1579.         protocol". The solution drive manufacturers use to solve this 
  1580.         problem is re-translating the geometry for the whole disk into 
  1581.         something that the BIOS protocol can handle. For example:
  1582.         
  1583.         My 203Mb Maxtor's physical geometry is:
  1584.         
  1585.         1698 cylinders, 4 heads, 42 sectors per track
  1586.         
  1587.         In this case the 1698 cylinders is more than the 1024 cylinders 
  1588.         that can be specified in the BIOS protocol. The manufacturer 
  1589.         solves this by "translating". This means that it will tell the 
  1590.         BIOS that it has:
  1591.         
  1592.         683 cylinders, 16 heads, 38 sectors per track
  1593.         
  1594.         The drive is then put into "translation mode" so that when the 
  1595.         BIOS protocol specifies a cylinder, head, and sector, the drive 
  1596.  
  1597.  
  1598.         Copyright 1993 (c) Mike Lambert All Rights Reserved  Page 24 of 28
  1599.  
  1600.           
  1601.         THE DISASTER RECOVERY DISKETTE  --  MAKING THE MAGIC FLOPPY
  1602.  
  1603.  
  1604.         translates that into the *real* cylinder, head, and track.
  1605.         
  1606.         You can imagine that if you tried to format this drive saying 
  1607.         683, 16, 38; we'd have a real problem formatting the real 1698,  
  1608.         4, 42! No, the drive will not "translate" during formatting.
  1609.         
  1610.         Its going to take special software to get the drive out of 
  1611.         "translation mode" and into "physical mode" to format it.
  1612.         
  1613.         
  1614.         Defect Management
  1615.         -----------------
  1616.         Drive manufacturers have endeavored to provide a means to manage 
  1617.         the defective sectors on a disk for the operating system. Consid-
  1618.         er this:
  1619.         
  1620.         Sector 3, head 2, cylinder 345 has a defect and can no longer 
  1621.         hold data reliably. The only way for the operating system to know 
  1622.         not to use it is to have it in its "bad block list". No problem 
  1623.         if known from the beginning, but it is interesting when using the 
  1624.         block to store data this minute. DOS is not known for its han-
  1625.         dling this sort of problem "on the fly". Third party products 
  1626.         allow us to "lock out bad clusters in the FAT". But what if the 
  1627.         drive took care of the problem?
  1628.         
  1629.         Suppose that the drive has a way of "replacing" the bad sector. 
  1630.         It sees that it can't store data in that sector so it stores it 
  1631.         in a space sector it has just for this purpose. There are various 
  1632.         ways to find this sector later when it is used again. So the 
  1633.         drive puts the data in a new sector and every time that sector is 
  1634.         accessed, the drive knows where it really stored the sector. 
  1635.         
  1636.         The end result is that as sectors go bad on the disk, the disk 
  1637.         takes care of replacing them, the operating system does not know 
  1638.         that the sector is in fact bad.
  1639.         
  1640.         To provide this service, part of the disk is "not available to 
  1641.         the operating system", but is available to the disk drive. How 
  1642.         this disk is formatted and how these spare and control areas are 
  1643.         allocated and prepared is a major formatting issue. Its going to 
  1644.         take special software to do this properly on the specific drive.
  1645.         
  1646.         
  1647.         Skewing
  1648.         -------
  1649.         Skewing refers to the order in which the heads and cylinders are
  1650.         physically laid out on the disk. Those familiar with sector
  1651.         interleave will have no trouble with cylinder and sector skewing.
  1652.         
  1653.         The manufacturer has determined, based on the performance charac-
  1654.         teristics of the drive, the optimum layout of sectors so that the 
  1655.         needed sector is available in the least amount of time. This is a 
  1656.         format issue and if not done properly, the disk will not provide 
  1657.         the optimum performance intended.
  1658.  
  1659.  
  1660.         Copyright 1993 (c) Mike Lambert All Rights Reserved  Page 25 of 28
  1661.  
  1662.           
  1663.         THE DISASTER RECOVERY DISKETTE  --  MAKING THE MAGIC FLOPPY
  1664.  
  1665.  
  1666.         The manufacturer knows how the sectors should be laid out. If you 
  1667.         have to LLF the disk, you must have software that will write 
  1668.         these sectors as the manufacturer intends.
  1669.         
  1670.         
  1671.         Zone Bit Recording (ZBR)
  1672.         ------------------------
  1673.         ZBR is best illustrated by looking at 2 circles, one inside of 
  1674.         the other. The distance around the circumference of the outer 
  1675.         circle is greater than the circumference of the inner circle. 
  1676.         When disks are typically formatted, the same number of sectors 
  1677.         are written around the inner and outer circle. As consecutive 
  1678.         inner circles get smaller, the sectors are closer together. The 
  1679.         number of sectors around the circle has to be the maximum number 
  1680.         of sectors that can be used on the inner circle. Simplistically, 
  1681.         the sectors on the outer circle are bigger than the sectors on 
  1682.         the inner circle. They don't need to be, they just are. This 
  1683.         wastes space, why not put more sectors of the same size on the 
  1684.         outer circle than on the inner circle?
  1685.         
  1686.         ZBR is a technique that provides just this variable number of 
  1687.         sectors on the tracks. Outer tracks have more sectors than the 
  1688.         inner tracks. What makes this issue so interesting is that all 
  1689.         the software we are using assumes that there are the same number 
  1690.         of sectors on all tracks. The drive has to be responsible for 
  1691.         translating the fixed assumptions to the variable realities.
  1692.         
  1693.         This is a huge formatting issue and not only requires special 
  1694.         software to do this properly so that the drive can reliably 
  1695.         deliver data from sectors, but it may also require special hard-
  1696.         ware and firmware to write these sectors. This firmware may not 
  1697.         be on the drive to do this.
  1698.         
  1699.         
  1700.         Track Alignment
  1701.         ---------------
  1702.         Earlier disk drives determined the place on a disk platter that 
  1703.         the track occupied by moving a precise distance from the begin-
  1704.         ning of the disk. This measurement relied on mechanical parts of 
  1705.         the drive; and as you'd expect, mechanical parts wear with use. 
  1706.         When they wear, they do not precisely place the heads over the 
  1707.         track properly. Various techniques have been used to place the 
  1708.         heads over the correct track in an acceptable amount of time.
  1709.         
  1710.         One current technique in use now is using what is called a "servo 
  1711.         track". This is a track that does not hold any data but when one 
  1712.         of the heads is aligned over this track, the other heads in the 
  1713.         head assembly are definitely aligned over the other tracks that 
  1714.         hold the data. The only job of this track is to provide accurate 
  1715.         placement for the head assembly. Naturally this will take up one 
  1716.         whole side of one platter. Since there are two sides to every 
  1717.         platter, normally you expect to find an even number of physical 
  1718.         heads. When you have a disk drive with three platters and find 
  1719.         that the physical head count is 5, chances are that the 6th 
  1720.  
  1721.  
  1722.         Copyright 1993 (c) Mike Lambert All Rights Reserved  Page 26 of 28
  1723.  
  1724.           
  1725.         THE DISASTER RECOVERY DISKETTE  --  MAKING THE MAGIC FLOPPY
  1726.  
  1727.  
  1728.         platter is used for servo tracks.
  1729.         
  1730.         Formatting a disk like this now covers the additional issue of 
  1731.         formatting (or not) these servo tracks. Normally there is no 
  1732.         write access to these tracks and special hardware and software 
  1733.         may be required to accomplish the format of the servo tracks. 
  1734.         
  1735.         
  1736.         Summary
  1737.         -------
  1738.         Low Level Formatting large disks and disks using advanced tech-
  1739.         niques for reliability as disk drives get smaller and faster, has 
  1740.         gotten much more complex than older drives that do not employ 
  1741.         special strategies. This complexity now dictates considerable 
  1742.         knowledge, special software, and possibly special hardware to 
  1743.         accomplish LLF for some disks. These requirements have taken the 
  1744.         capability to LLF out of the hands of many of those who could 
  1745.         take care of LLF in the past. The only thing that can be counted 
  1746.         on as the future of disk drives unfolds is that it is going to 
  1747.         get more complex and specialized.
  1748.         
  1749.  
  1750.  
  1751.  
  1752.  
  1753.  
  1754.  
  1755.  
  1756.  
  1757.  
  1758.  
  1759.  
  1760.  
  1761.  
  1762.  
  1763.  
  1764.  
  1765.  
  1766.  
  1767.  
  1768.  
  1769.  
  1770.  
  1771.  
  1772.  
  1773.  
  1774.  
  1775.  
  1776.  
  1777.  
  1778.  
  1779.  
  1780.  
  1781.  
  1782.  
  1783.  
  1784.         Copyright 1993 (c) Mike Lambert All Rights Reserved  Page 27 of 28
  1785.  
  1786.           
  1787.         THE DISASTER RECOVERY DISKETTE  --  MAKING THE MAGIC FLOPPY
  1788.  
  1789.  
  1790.         APPENDIX C  Using Disk Manager (DM) to LLF
  1791.          
  1792.         This is not to be meant as a tutorial or analysis of Disk Manag-
  1793.         er, but just an overview for those unfamiliar with it.
  1794.         
  1795.         Ontrack's Disk Manager has been around for a long time. They were 
  1796.         providing multiple, and greater than 32Mb partitions before DOS. 
  1797.         If you are using the DM partitioning and drivers to give you 
  1798.         custom partitioning, its just a matter of following the prompts. 
  1799.         DM will walk you through the entire process, making it virtually 
  1800.         painless. DM will take care of the LLF, all the partitioning, and 
  1801.         high level preparation for you. The current version is 5.21 and 
  1802.         all fits on a 360k disk so it can be used on any system easily.
  1803.         
  1804.         You'll have to provide an operating system as Disk Manager is run 
  1805.         from the DOS prompt. Your DRF Disk 1 is used for this. Remove DRF 
  1806.         Disk 1 and insert the Disk Manager disk. At the DOS prompt, enter 
  1807.         DM to start Disk Manager in Automatic Mode. 
  1808.         
  1809.         This mode makes it easy for less sophisticated users to handle 
  1810.         the LLF and disk preparation. Partitioning can be handled auto-
  1811.         matically, or individual partitions can be specified. Diagnostics 
  1812.         are also available and should be used before formatting.
  1813.         
  1814.         For advanced users, enter DM /M. If control is what you want, 
  1815.         manual Mode is the answer. From these menus it is possible for 
  1816.         the more advanced user to control all aspects of the disk prepa-
  1817.         ration. Existing drives are identified explicitly in the System 
  1818.         Configuration menu. The disk geometry is accessible, CMOS can be 
  1819.         updated or changed. 
  1820.         
  1821.         A full range of diagnostics are available from the Diagnostic 
  1822.         Services menu.
  1823.         
  1824.         The Disk Preparation menu provides access to formatting and 
  1825.         partition preparation. Formatting can be completely controlled, 
  1826.         even restricted to partitions or individual tracks. Destructive 
  1827.         and non-destructive defect scanning is also available. The defect 
  1828.         list can be modified. Disk formatting can be defined by manufac-
  1829.         turer and model number. Full control over formatting parameters 
  1830.         is available. Partitioning can be controlled at the cylinder 
  1831.         level. This is handy for locking out a group of bad cylinders.
  1832.         
  1833.  
  1834.  
  1835.  
  1836.  
  1837.  
  1838.  
  1839.  
  1840.  
  1841.  
  1842.  
  1843.  
  1844.  
  1845.  
  1846.         Copyright 1993 (c) Mike Lambert All Rights Reserved  Page 28 of 28
  1847.  
  1848.